from django.db import models
#from django.contrib.auth.models import User

class WebGLModel(models.Model):
    mod_name = models.CharField(max_length = 50)
    mod_loc = models.CharField(max_length = 250)
    pub_date = models.DateTimeField("date published")
    gl_matrix = models.CharField(max_length = 5000) #test model for WebGL matrices, possibly link on local server
    
    def __unicode__(self):
        return self.mod_name 
    
class Comment(models.Model):
    #u_id = models.ForiegnKey(Model) #<= need to add this to table
    content = models.TextField()
    com_date = models.DateTimeField("date commented")
    
    def __unicode__(self):
        return self.content
    
    #returns the user id associated with the comment <= alter to return username 
    def usrname(self):
        return self.u_id
    
    
#possibly have to make a User class